/*
 * Copyright 2011 Carnegie Mellon University
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.cmu.lti.ritesdk;

/**
 * Represents a system output given a text pair.
 * Confidence value can be constantly 1 if you don't calculate such a value. 
 * 
 * @author Hideki Shima
 */
public class AnalyzedTextPair {

  // Original source data
  private TextPair textPair;
  
  // System's prediction is stored here.
  private String systemLabel;
  
  //confidence is not evaluated, but for future extensions, 
  //such as combining with other systems. 
  private double confidence;
  
  // Currently, do nothing with it. To be dumped in the future?
  private String log;
  
  public AnalyzedTextPair( TextPair textPair, String systemLabel, double confidence ) {
    this.textPair = textPair;
    this.systemLabel = systemLabel;
    this.confidence = confidence;
  }

  public AnalyzedTextPair( TextPair textPair, String systemLabel, double confidence, String log ) {
    this( textPair, systemLabel, confidence );
    this.log = log;
  }

  public String getLog() {
    return log;
  }

  public void setLog(String log) {
    this.log = log;
  }

  public TextPair getTextPair() {
    return textPair;
  }

  public String getSystemLabel() {
    return systemLabel;
  }

  public double getConfidence() {
    return confidence;
  }

  public void setSystemLabel(String systemLabel) {
    this.systemLabel = systemLabel;
  }

  public void setConfidence(double confidence) {
    this.confidence = confidence;
  }
  
}
